package com.kinon.market.sqlbean;

import org.litepal.annotation.Column;
import org.litepal.crud.DataSupport;

import java.util.ArrayList;

/**
 * Created by luohao on 2017-08-09.
 */

public class UserBuyBean extends DataSupport {
    @Column(unique = false, defaultValue = "id")
    private String orderno;
    private String card;
    private String time;
    private String date;
    private double total;
    //0==未提交 1==提交
    private int submit;
    private ArrayList<BuyGoodsBean> details = new ArrayList<BuyGoodsBean>();

    public UserBuyBean(String orderno, String card, String time, String date,
                       double total, int submit, ArrayList<BuyGoodsBean> details) {
        this.orderno = orderno;
        this.card = card;
        this.time = time;
        this.date = date;
        this.total = total;
        this.submit = submit;
        this.details = details;
    }

    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public int getSubmit() {
        return submit;
    }

    public void setSubmit(int submit) {
        this.submit = submit;
    }

    public ArrayList<BuyGoodsBean> getDetails() {
        return details;
    }

    public void setDetails(ArrayList<BuyGoodsBean> details) {
        this.details = details;
    }

    @Override
    public String toString() {
        return "UserBuyBean{" +
                "orderno='" + orderno + '\'' +
                ", card='" + card + '\'' +
                ", time='" + time + '\'' +
                ", total=" + total +
                ", submit=" + submit +
                ", details=" + details +
                '}';
    }
}
